package com.ysy.logistics.entities.sale;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ysy.common.entities.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @ClassDescription:
 * @Author:姚斯羽
 * @Create:2025/4/9 22:33
 **/
@Data
@TableName("cus_order_goods")
@Schema(name = "cus_order_goods", description = "客户订单商品类")
@Accessors(chain = true)
public class CusOrderGoods extends BaseEntity {

    @Schema(description = "Id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @Schema(description = "订单Id")
    @TableField(value = "order_id")
    private String orderId;

    @Schema(description = "商品Id")
    @TableField(value = "goods_id")
    private String goodsId;

    @Schema(description = "商品数量")
    @TableField(value = "goods_num")
    private Integer goodsNum;

    @Schema(description = "商品单价")
    @TableField(value = "goods_price")
    private Integer goodsPrice;

    @Schema(description = "商品总价")
    @TableField(value = "goods_total_price")
    private Integer goodsTotalPrice;

    @Schema(description = "仓库Id")
    @TableField(value = "store_house_id")
    private String storeHouseId;

    @Schema(description = "规格Id")
    @TableField(value = "goods_capacity_id")
    private String goodsCapacityId;


}
